package com.bruce.impl;

import com.bruce.service.CustomerService;
import com.sun.org.apache.regexp.internal.RE;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * @author Bruce
 */
public class CustomerServiceImpl extends UnicastRemoteObject implements CustomerService {
    public CustomerServiceImpl() throws RemoteException {
        super();
    }

    @Override
    public String getCustomer(String name) throws RemoteException{
        return "查询客户: " + name;
    }

    @Override
    public int addCustomer(String name) throws RemoteException {
        System.out.println("新增客户： " + name);
        return 1;
    }
}
